#ifndef MULTIPLEXWORKER_H_INCLUDED
#define MULTIPLEXWORKER_H_INCLUDED

#include <Ape/MT/Worker.h>
#include <MultiplexD/WorkerModel/MultiplexLetter.h>

namespace MultiplexD {
	namespace WorkerModel {
		class MultiplexWorker : public Ape::MT::Worker<MultiplexLetter> {
			TYPE_NAME ("MultiplexD::WorkerModel::MultiplexWorker")
		protected:
			bool m_DoIgnoreExceptions; // in case of error in the logger
		public:
			MultiplexWorker();
			virtual ~MultiplexWorker();
			
			static MultiplexWorker* Find(const Ape::Uuid& id);
			virtual void HandleError(Ape::Exception& exc);
		};
	}
}

#endif // MULTIPLEXWORKER_H_INCLUDED
